package year2022.month123;

import java.net.URLDecoder;
import java.net.URLEncoder;
import java.util.UUID;

public class StringTest {
    public static void main(String[] args) throws Exception {
        String str = "watson华升pan";
        System.out.println(str);
        str = URLEncoder.encode(str, "utf-8");
        System.out.println(str);

        str = URLDecoder.decode(str, "utf-8");
        System.out.println(str);

        System.out.println(UUID.randomUUID());
    }
}
